<?php
echo '<body style="text-align: center;"><h1>connect mysql is ';
try {
    $mysqlHandel = mysqli_connect('mysql', 'root', 'root');
    $mysqlHandel->ping();
    echo 'success';
} catch (Exception $e) {
    echo 'fail!</h1><br>[' . $e->getMessage() . ']';
}
echo '</body>';